package com.ncloud.resman.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.ncloud.resman.entity.CpeModel;
import com.ncloud.resman.entity.FirewallModel;
import com.ncloud.resman.entity.Model;
import com.ncloud.resman.entity.ServerModel;
import com.ncloud.resman.entity.SwitchModel;

public interface ModelService {

	Object getModelList(JSONObject json);

	JSONObject getModelById(Long modelId);

	Model insertModel(Model model);
	
	int insertServerModel(ServerModel model);

	int updateModel(Model model);

	int deleteModel(Model model);

	int insertSwitchModel(SwitchModel model);

	int insertCpeModel(CpeModel model);

	int updateServerModel(ServerModel serverModel);

	int updateSwitchModel(SwitchModel switchModel);

	int updateCpeModel(CpeModel cpeModel);

	int updateFireWallModel(FirewallModel firewallModel);

	List<Map<String, Object>> findCpeModelsByTypeAndBrandId(String eqptType, Long brandId);

	List<Map<String, Object>> findFirewallModelsByTypeAndBrandId(String eqptType, Long brandId);

	List<Map<String, Object>> findSwitchModelsByTypeAndBrandId(String eqptType, Long brandId);

	List<Map<String, Object>> findServerModelsByTypeAndBrandId(String eqptType, Long brandId);

	Model getModelByModelName(String eqptType, Long brandId, String modelName);
	
	Model getModelInfoById(Long modelId);
	
	Model getModelInfoByName(String modelName);

}
